package com.yhb.dao;

import com.yhb.model.ThirdPurchaseFlow;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface ThirdPurchaseFlowMapper {
    int insertFlow(@Param("dateString")String dateString, @Param("flow") ThirdPurchaseFlow flow);
    ThirdPurchaseFlow flowByExecutionFlowId(@Param("dateString")String dateString, @Param("id") String flowId);
    ThirdPurchaseFlow flowById(@Param("dateString")String dateString, @Param("id") String flowId);
    int modify(@Param("dateString")String dateString, @Param("flow") ThirdPurchaseFlow flow);
    List<ThirdPurchaseFlow> notSucceededCountFlowsBefore(@Param("dateString")String dateString, @Param("retryCount")int retryCount, @Param("createBefore") Date createAfter);
}
